package com.ly.mpayment.persist.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * UpOrderLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="uporderlog"

)

public class UpOrderLog  implements java.io.Serializable {


    // Fields

     private String uporderloguuid;
     private UpgameRecharge upgameRecharge;
     private User user;
     private UpOrder upOrder;
     private Date createtime;
     private String remark;
     private String upoperationtype;
     private Integer upordertype;


    // Constructors

    /** default constructor */
    public UpOrderLog() {
    }


    /** full constructor */
    public UpOrderLog(UpgameRecharge upgameRecharge, User user, UpOrder upOrder, Date createtime, String remark, String upoperationtype, Integer upordertype) {
        this.upgameRecharge = upgameRecharge;
        this.user = user;
        this.upOrder = upOrder;
        this.createtime = createtime;
        this.remark = remark;
        this.upoperationtype = upoperationtype;
        this.upordertype = upordertype;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="uporderloguuid", unique=true, nullable=false, length=40)

    public String getUporderloguuid() {
        return this.uporderloguuid;
    }

    public void setUporderloguuid(String uporderloguuid) {
        this.uporderloguuid = uporderloguuid;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="upgameuuid")

    public UpgameRecharge getUpgameRecharge() {
        return this.upgameRecharge;
    }

    public void setUpgameRecharge(UpgameRecharge upgameRecharge) {
        this.upgameRecharge = upgameRecharge;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="useruuid")

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="uporderuuid")

    public UpOrder getUpOrder() {
        return this.upOrder;
    }

    public void setUpOrder(UpOrder upOrder) {
        this.upOrder = upOrder;
    }

    @Column(name="createtime", length=19)

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="remark", length=1000)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name="upoperationtype", length=40)

    public String getUpoperationtype() {
        return this.upoperationtype;
    }

    public void setUpoperationtype(String upoperationtype) {
        this.upoperationtype = upoperationtype;
    }

    @Column(name="upordertype")

    public Integer getUpordertype() {
        return this.upordertype;
    }

    public void setUpordertype(Integer upordertype) {
        this.upordertype = upordertype;
    }









}
